package Year22_Month06.day27;

import java.util.Scanner;

public class 倒置字符串 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s= sc.nextLine();
        String[] arr = s.split(" ");
        for(int i = arr.length - 1;i >= 0;i--){
            System.out.print(arr[i] + ' ');
        }
    }
}
